package com.ruoyi.project.syl_LiBiao.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.syl_LiBiao.domain.PrOrReOrCa;
import com.ruoyi.project.syl_LiBiao.service.ChargeManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@RequestMapping("/sylCharge")
@Controller
public class ChargeManagementController extends BaseController {
    @Autowired
    private ChargeManagementService chargeManagementService;

    /**
     * 根据挂号id ,查询对应的处方信息
     * @return
     */

    @RequestMapping("/selectOne")
    @ResponseBody
    public AjaxResult selectOne(String registerId){

        Map map = chargeManagementService.selectRegisterId(registerId);

        return AjaxResult.success(map);
    }

    @RequestMapping("/pay")
    @ResponseBody
    public AjaxResult pay(String ids){
        System.out.println(ids);
        return AjaxResult.success("跳转");
    }

    @RequestMapping("/test01")
    public String test01(String ids){

        return "/alipay";
    }

}
